﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ZG_member.DAL;
using ZG_member.Model;
using System.Data;
namespace ZG_member.BLL
{
    public class goodsInfo
    {
        DAL.goodsInfo gi = new DAL.goodsInfo(); 
        public bool add(ZG_member.Model.goodsInfo model) {
           return gi.add(model);
        }
        public DataSet GetList(string strWhere) {
            return gi.GetList(strWhere);
        }
        /// <summary>
        /// 获取表中全部数据
        /// </summary>
        /// <param name="strWhere"></param>
        /// <returns></returns>
        public DataSet GetAll(string strWhere)
        {
            return gi.GetAll(strWhere);
        }


        public int GetMaxwasteBookId()
        {
            return gi.GetwasteBookMaxId();
        }
        public DataSet GetListWhere(string strWhere)
        {
            return gi.GetListWhere(strWhere);
        }
        public bool Deletewhere(string sql)
        {
            return gi.Deletewhere(sql);
        }
        public bool Update(ZG_member.Model.goodsInfo model)
        {
            return gi.Update(model);
        }
    }
}
